jQuery('#WorkoutDatex').DatePicker({
	format:'Y-m-d',
	date: jQuery('#WorkoutDate').val(),
	current: jQuery('#WorkoutDate').val(),
	starts: 1,
	position: 'r',
	onBeforeShow: function(){
		jQuery('#WorkoutDate').DatePickerSetDate(jQuery('#WorkoutDate').val(), true);
	},
	onChange: function(formated, dates){
		jQuery('#WorkoutDate').val(formated);
		jQuery('#WorkoutDate').DatePickerHide();
	}
});